/* *****************************************************************************

 Copyright (C) : 2000-2024, unit

 ******************************************************************************
 File Name     : jst_lcd.c
 Version       : ver 1.0
 Author        : phh
 Created       : 2024/11/4
 Last Modified :
 Description   : 
 Function List :
 History       :
 1.Date        : 2024/11/4
   Author      : phh
   Modification: Created file

***************************************************************************** */

/* ----------------------------------------------*
 * header files                                  *
 *---------------------------------------------- */
#include "lib/lcd/lcd.h"
#include "User_Config.h"

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */

/* ----------------------------------------------*
 * macro                                         *
 *---------------------------------------------- */

/* ----------------------------------------------*
 * type definition                               *
 *---------------------------------------------- */

/* ----------------------------------------------*
 * module-wide global variables                  *
 *---------------------------------------------- */

/* ----------------------------------------------*
 * modul global variables                        *
 *---------------------------------------------- */

/* ----------------------------------------------*
 * internal routine prototypes                   *
 *---------------------------------------------- */

/* ----------------------------------------------*
 * routines' implementations                     *
 *---------------------------------------------- */




#if LCD_NV3047_EN

#define CMD(x)    {LCD_CMD,x}
#define DAT(x)    {LCD_DAT,x}
#define DLY(x)    {DELAY_MS,x}
#define END		{LCD_TAB_END,LCD_TAB_END}


const uint8_t nv3047_register_init_tab[][2] = {
	

	END

};
lcddev_t  lcdstruct = {
    .name = "nv3047",
    .lcd_bus_type = LCD_BUS_RGB,
    .bus_width = LCD_BUS_WIDTH_16,
    .color_mode = LCD_MODE_565,
    .scan_mode = LCD_ROTATE_0,//rotate 90
    .te_mode = 0xff,//te mode, 0xff:disable
    .colrarray = 5,//0:_RGB_ 1:_RBG_,2:_GBR_,3:_GRB_,4:_BRG_,5:_BGR_
    .pclk = 9000000,
    .even_order = 0,
    .odd_order = 0,

    .screen_w = LCD_WEIGHT,
    .screen_h = LCD_HEIGHT,
    .video_x  = 0,
    .video_y  = 0,
    .video_w  = LCD_WEIGHT,
    .video_h  = LCD_HEIGHT,
	.osd_x = 0,
	.osd_y = 0,
	.osd_w = LCD_WEIGHT, // 0 : value will set to video_w  , use for 4:3 LCD +16:9 sensor show UPDOWN BLACK
	.osd_h = LCD_HEIGHT, // 0 : value will set to video_h  , use for 4:3 LCD +16:9 sensor show UPDOWN BLACK
	.init_table = NULL,

    .pclk_inv = 0,

    .vlw 			= 4,
    .vbp 			= 12,
    .vfp 			= 8,

    .hlw 			= 4,
    .hbp 			= 43,
    .hfp 			= 8,

	
	.de_inv = 0,
	.hs_inv = 0,
	.vs_inv = 0,


	.de_en  = 0,
	.vs_en	= 1,
	.hs_en	= 1,

};

#endif

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

